package org.vectrics.company.client.module;


import org.vectrics.VectricsException;
import org.vectrics.client.module.Module;
import org.vectrics.client.module.ModulePanel;
import org.vectrics.client.module.NavigationPanel;



public class CompanyModule extends Module {
	public static String MODULE_NAME = "Company Management";

	public CompanyModule() {
		super();
		this.addChild(new CompanyEditModule());
	}


	public ModulePanel createMainPanel() {
		return new CompanyModulePanel();
	}

	public NavigationPanel createNavigationPanel() {
		return null;
	}

	public String getName() {
		return(MODULE_NAME);
	}

	protected void onActivate() {
		CompanyModulePanel panel = (CompanyModulePanel)this.getMainPanel();
		panel.displayAllCompanies();
	}
}
